<template>
  <div class="app">
    <router-view v-if="isShow"></router-view>
  </div>
</template>

<script setup lang="ts">
import { ref, nextTick, provide } from 'vue'

const isShow = ref<Boolean>(true)

const onRefresh = () => {
  isShow.value = false
  nextTick(() => {
    isShow.value = true
  })
}

provide('reload', onRefresh)

</script>

<style lang="scss" scoped>
.app{
  height: 100%;
}
</style>